package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TSalesmanWork;
import com.bootdo.project.dao.TSalesmanWorkMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TSalesmanWorkService {

	@Autowired
    private TSalesmanWorkMapper tSalesmanWorkMapper;
    
    public int deleteByPrimaryKey(Long id){
        return tSalesmanWorkMapper.deleteByPrimaryKey(id);
    }

    public int insert(TSalesmanWork record){
        return tSalesmanWorkMapper.insert(record);
    }

    public int insertSelective(TSalesmanWork record){
        return tSalesmanWorkMapper.insertSelective(record);
    }

    public TSalesmanWork selectByPrimaryKey(Long id){
        return tSalesmanWorkMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TSalesmanWork record){
        return tSalesmanWorkMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TSalesmanWork record){
        return tSalesmanWorkMapper.updateByPrimaryKey(record);
    }

    public List<TSalesmanWork> selectByCondition(TSalesmanWork record){
        return tSalesmanWorkMapper.selectByCondition(record);
    }

    public List<TSalesmanWork> selectAll(){
        return tSalesmanWorkMapper.selectAll();
    }

    public List<TSalesmanWork> selectByPage(Page<TSalesmanWork> page){
        return tSalesmanWorkMapper.selectByPage(page);
    }

    public Integer count(TSalesmanWork record){
        return tSalesmanWorkMapper.count(record);
    }

    public int deleteByCondition(TSalesmanWork record){
        return tSalesmanWorkMapper.deleteByCondition(record);
    }

}
